Actual stucco finishes are not sprayed. Much too thick to spray.
Drywall mud can be thinned and sprayed using a hopper and texture gun. Common finishes are the old popcorn look and various knockdown techniques. Perhaps you could properly prep the wall and do something like that.
I think your best bet would be to actually trowel stucco on conventionally if that's the look you're going for.