The capacity is often marked on batteries, more often in Ah or mAh than Wh; multiplying by 12V gives a reasonable number of Wh. If not marked, take the dimensions and compare with other NiMH batteries in a catalogue, since the capacity per volume unit is about the same for every manufacturer.