There are two side to that one is Drugs the other is diatamais earth food grade it would be harder to find the Meds that would treat the one animal or bird that you are Intending to treat for the Infection of worms and I do not know of one medication man made that will work to prevent the Infection that may or may not be harmful in some way to you or the Animal and there's the dosage of the medication for each its determined mostly by body weight.
These drugs can be found in places such as Feed stores and Farm Supply stores as well Vets could supply you with them also.
I don't want to sound like a snake oil salesman but food gradediatamais earth is a preventive as well as a cure for the worms in all animals and birds.
I eat my fowl and do not want to give any drugs to my flock unless I absolutely have to and only as a last resort.
Different parts of the world will vary as far as infestations of parasite worms in the soil.
The time of the year can vary in what amount are active in the soil wormer months more active than cold.
They can be transmitted from one infected animal to another.
D.E. or food grade diatamais earth can be mixed in water as well as the food.
I use one cup to a 5 gallon bucket of feed one time a month in the colder months and more as needed in the wormer months I also use it on my dogs.
You can dust your dogs and your birds rub them down with it and it will keep parasites off the birds and fleas off the Dogs.
I dust the yard as well for any and all Insects and it works great this is my 3rd year using it.
You can buy it from the
Tractor Supply Co, its called
Red Lake Earth
Diatomaceous Earth with Calcium Bentonite Supplement, 20 lb for $12.99 bag.
Or you can google it and find it on line Pure D Earth diatamais earth food grade.
If you have an emergency cases were you were lax in treating your animals and they get a bad case of worms boil down some tobacco cooled down first and give a teaspoon 2 times a day for 2 to 3 days Nicotine is the best Insecticide and will not hurt any animal.
I hope I was of some help to you and good luck.