Hello, and sorry to hear about your concerns.
My first question would be why you think that you may have contracted worms from your dog, or what symptoms have you been having? However, this being said, unfortunately the answer remains the same in that the diagnosis would require a stool sample being analyzed for ova (aka eggs) and parasites. Then if need be, you could be treated with an antiparasitic medication that would kill whatever it is you may have.
So I'm sorry, but if you live in the US I'm not aware of a way to buy these medications without a prescription.
Best of luck, and if you have further questions let me know...
Please ask if you need clarification/more information.
POSITIVE feedback & a BONUS are greatly appreciated.
Please note that answers are for information only, do not take the place of an assessment by your doctor, and does not establish a patient-physician relationship