How can I get a reference to the animations of a skeletal mesh so I can place them in an array?

How can I get a reference to the animations of a skeletal mesh so I can place them in an array?