If you're JUST talking about equivalent energy, it's pretty easy.
An average 18650 (3.7V, 2900mAh) holds 3.7*2.9 = 10.73Wh of energy.
An average AA [eneloop] (1.2V, 2000mAh) holds 1.2*2 = 2.4Wh of energy.
An average AAA [eneloop] (1.2V, 800mAh) holds 1.2*0.8 = 0.96Wh of energy.
Thus, you'd need 10.73/2.4 = 4.5 eneloop AAs to equal the amount of energy a 2900mAh 18650 holds.
And you'd need 10.73/0.96 = 11.2 eneloop AAAs to equal the amount of energy a 2900mAh 18650 holds.
Of course, different circuits use energy in different ways depending on how they are regulated. *Generally*, most circuits will be more efficient at higher voltages (as long as they're designed to take the higher voltage)
(I forgot to add - keep in mind that the amount of energy you get from a cell always depends on the rate of discharge)