Hi,
Well, the thing is I don't know if there is such api for Unity to do so, if you want a working script doing this, let me know, and I'll have a base to create a custom actions.
else, you should make Animator graph out of your anims and then use the state infos to know when it transits or else. Would it be ok to make a animator graph in your case?
Bye,
Jean