Read Vehicle forces (Sway, Surge, Heave)

Hi!
We’re working on a basic Vehicle Template and we need to read the forces of our vehicle.
In particular, we need the lateral and longitudinal force, but how can we extract those infos?
Thanks