Sounds like you want something similar to:
if (skeletonAnimation.skeleton.skin.name == "YourSkinName") { ...
Note this will set the skin to null, so you only get the default skin (which contains attachments not in a skin in the editor):
skeletonAnimation.skeleton.SetSkin("MyCodeHere");