well not directly i mean there is no why to get the animation string or ID but if you want it for a specific unit type you can register all the animation IDs and assign a String for each spells and how to get that animations its simple when the unit casts an spell , when a unit issued to attack or move , i know its not efficient but sometimes you should get creative to make things work