You can see the remaining capacity if you stop pedaling (remove the load from the battery) and see what the voltage is.
You can check the health of the battery by watching how far the voltage drops under load and how fast the capacity drops as the battery is draining.
New batteries, bigger batteries, healthier batteries have less voltage sag and drop in capacity than older, smaller, worn out batteries.
You just stop pedaling (to shut off your motor) and watch how the voltage rebounds to show you your capacity.
A newer, larger, healthier battery will rebound faster and further than old worn smaller batteries.
Cold batteries have less capacity as well.
All that can be observed by watching your voltmeter.
They are slow and sluggish to rebound but are faster to drop in capacity and have greater voltage sag.