You determine the sex of a snake by doing what's known as "probing". I'd describe how its done, but as Carson said, it's best to just bring them to a reputable vet to have them sexed.