My thinkpad T40 has a 'Battery Maximiser' wizard which interrogates the battery, giving a whole pile of real-time information about the current draw (or charge), cycle count, actual capacity vs design capacity, battery serial number, manufacturer etc. etc.
Part of the thinkpad battery design must include data storage and retrieval, plus some non-volatile RAM.
BW