Yes you can use Panacur or Ivomec horse wormers for sheep. But if these are adult sheep and they are grazing the horse pasture, then as mentioned, they probably won't need worming.
I use the same Panacur 10% for my poultry, dogs, sheep, cattle and equines. You can find the relative doses on the internet for each species.