Measuring Li-ion battery manage to get a number in mAh
You can't know capacity unless you measure a charge or discharge cycle and measure the current and voltage of the cell. It's also good to know the chemistry of the cell.
One way is to fully charge the cell and then discharge it and measure how much power it takes to discharge the cell to it's low point
If you know the chemistry you may be able to get by with just voltage.