Sure. You are able to collect the battery voltage (and temperature).
But it depends on the load very much. And it needs to make many tests to collect the data.
I was trying to do it in my app CaliBattery. IMHO, no use - if battery gets low fastly - search for apps that drain it, and if all removed (and did not help) - just replace the phone (battery better than original does not exist)