Velocity vector in a root motion animation

Hi guys! I was wondering how can I get the velocity vector of a Root motion animation at any time via C++.

For example, having a 20 seconds root motion animation, I can get the Root transform of the animation with the ExtractRootMotion function, so I can know where the character is going to be at any time of the animation, but how can I know the velocity at that point, for example the fifth second.

Thanks in advance!