You can try software:
https://windowsreport.com/laptop-battery-testing-software/
Or do it yourself:
To re-calibrate your laptop's battery, you can follow the steps below:[br]
'''Important''': Re-calibrating your battery may take several hours depending upon your system configuration as well as the age and life of your battery.[br]
1. Turn your laptop Off. Then plug in your AC adapter.[br]
2. Let the battery fully charge, until the battery LED turns Off.[br]
3. Now, turn On the laptop and then press F8 key repeatedly when the first logo screen comes up.[br]
4. In the "Windows Advanced Startup" menu, go to "Safe Mode" and then press the "ENTER" key.[br]
5. Unplug the unit and let the computer run on battery until it shuts down.