If you mean the battery monitoring, on my friend's machine, it's done from BIOS - must have a full charge (eg. charge for x hours before use) and then the BIOS option forces it to remain powered until it runs down, measuring the capacity - I believe this is the most common method.