We can estimate the energy consumption, based on the complexity of bitcoin. Complexity is the value calculated by the protocol and attached to each block. Complexity measures the average number of hashes left by the miner to search for one real block.
I think that to calculate how much the entire network uses bitcoin and compare with the amount of energy that a particular country uses can only be done with special skills in the field of electricity