If your computer actually keeps track of power (e.g. notebook), than on kernel 3.8.11 you can use the command below. It returns power measured in microwatts.
cat /sys/class/power_supply/BAT0/power_now
_This works on kernel 3.8.11 (Ubuntu Quantal mainline generic)._