Though the female and the male look alike, they can be distinguished by looking at the end of their abdomen. The male has a boat-shaped tip while the female has two serrated valves that can be either apart or kept together.
These valves aid in the digging of the hole in which an egg pod is deposited.
http://en.wikipedia.org/wiki/Locust