Ahh, yes the lovely tapeworm. Your vet should be able to diagnose the tapeworm even without having the worm that was expelled. They should be able to get a fecal sample from the snake which will confirm the tapeworm as well as show any other parasites the snake might have.
You will be given at least one medication (maybe more if there are different parasites found) which you can administer to your snake orally to get rid of the worms. It is a good idea to have another fecal done when the treatment is finished to make sure that all of the parasites are gone.
If there are other animals in your collection you should quarantine this snake from them until it is clean. You may also consider having fecals done on your other animals as well to make sure they do not have any parasites.