You can send poo off to be tested for what type of what is in the snake. For treating worms it is easy. You load the F/T rodent with the correct meds for what ever type of parasites it has. Now, without having the poo tested your just guessing. Unless the poo was fresh. As the "worms" you saw "could" be larva from the cage, house or something else.
Google for a Vet or lab to send the sample to. Heck, a dog an cat Vet can test it also.
Good luck!
I took his poo to the vet before his appointment and they analyzed it before I came in.