Voltage does not go into the device and it's constant: It is always 5 volts (± 0.25 V, as defined by the USB standard).
It's the current that goes into the device and it's measured in amperes. The level of current defines how fast the battery is charging.
To my knowledge there's no public API to read any of these values.