Rabbits are not renowned for passing their worms to sheep. Normally worms are species specific, which is why you can graze such as equines, sheep and cattle together and they will hoover up each other's worms.
However, rabbits can pass tapeworms on, and these can be easily seen in the sheep's droppings as squarish white bits about 2 - 3mm in length.