You can run this:
adb shell cat /sys/class/power_supply/battery/serial_number
Requires adb: https://developer.android.com/tools/adb