On a regulated mod, what counts is the set watts on the machine. A mod set for 10 watts delivers 10 watts/seconds of power (ignoring efficiency losses) for each second the fire button is pressed. There 3600 watt/seconds in a watt/hour, so a 1 second button push uses .00278 watt/hours; or looked at from the other direction, a mod set for 10 watts will flatten a 1 watt/hour capacity battery in 360 seconds (6 minutes total button on time). If you have 2 x 1 watt/hour batteries, it takes 640 seconds or 12 minutes button time to flatten both of them. This is true regardless of the coil value or the voltage the mod applies to that coil. What counts is the watts setting.
Batteries are rated in mAh for capacity, rather than watt hours. That can be useful, as it tells you what kind of current the battery can support for how long, but it doesn't tell you much about how much power the battery stores in absolute terms. There are a lot of complex technical reasons why this is done, and I won't get deeply into them here, but for one thing, it isn't easy-- actually, it's impossible-- to calculate exactly how many watt/seconds or watt/hours a battery will hold. The closest you can get is a first order approximation; with some battery chemistries, the closest is a second order approximation. That's because how much power you can cram into a battery, and then get that power back out, is dependent on a lot of variables, like temperature, voltage sag under load, I^2R losses during discharge and others, that can do different things at different times. Further, the chemical processes that store and release the electrons are a lot slower than just shooting the electrons down a wire. You can run a battery "flat" with a high current discharge, so it won't make any more power, then let it rest a bit, so it cools down and the internal chemicals have a chance to rebalance their electron distribution, and then get more current out of it. A rough and ready estimate-- if not a particularly accurate one-- of how many watt/hours a battery holds can be found by: (battery mAh) x (battery nominal voltage; usually 3.7) / 1000. This is because amps x volts = watts. Therefore, a 2500 mAh battery holds approximately (2500) x (3.7) = 9250 milliwatt/hours (mWh) or, divide by 1000, 9.25 watt/hours. I stress that's an approximation, and not a particularly accurate one.
On a mechanical mod, things are different. This is because applied watts vary with voltage given the same coil. It's not like setting a regulated to 10 watts and then getting 10 watts out of it. But on a regulated, if you set the watts and leave them in one place, then you get twice the life from two identical batteries than from one because you have twice the power storage.