The batteries are also often coded with the date on the label, which is easier to see than crawling under the bike.
Generally, batteries don't wear down if they're not used as long as they're kept in the middle charge range, i.e. not left on the charger for days or weeks. The only way to find...