The Vex controller does not have a built-in function to read the battery voltage. But you can wire the battery into one of the analog ports, using two resistors to reduce the maximum voltage from 7.5v to 5v.
You would configure that I/O port for Analog input and then feed the “analog” value you get (gotten by reading/getting that port’s input value) into a little one line equation that would give you decent estimation of the voltage the battery is able to sustain across all the loads attached to it at the moment the analog value was sampled/read.
I’ll let LTK supply the equation. Creating it isn’t hard, but I’m hungry and tired…