How to calculate kinetic energy in step action class using tracking?

how to calculate kinetic energy in step action class using tracking ? and for this i want to changes in example B1. as i am new in this, can anyone please solve this problem.
Thanks.

See Access to track information