I'm not sure if having a residence permit gives you all the benefits of being a EU citizen. In any case, you should go to a Seguridad Social office and ask them about it.

If you have social security insurance in Spain, you'll be covered in the rest of the EU countries.
_________________________
The best tips from your favourite hostal in Madrid.
Hostal Chelo at http://www.chelo.com