You can keep an action state of your sprite in the MySprite
class which easily can tell you which action is used in the sprite.
When you run an action on the sprite just set the state properly. For example :
mySprite.actionState = ACTION_WALKING;
and then you can easily check which action is used:
if (mySprite.actionState == ACTION_WALKING)
{
// Your handling code
}