Look at the anal fin (that's the one on the stomach, just in front of the tail).
Females will have a normal, fan shaped fin, while males have the fin modified into a rod-like structure called a gonopodium, which they use like a penis.
If you have a mixture of sexes you'll be getting a lot of fry; platies and swordtails can interbreed, and often females are already pregnant when you buy them. They can also store 'packets' of sperm from previous matings, so can have fry even if there are no males present.