may be a software that use clock speeds and voltages like cpu, ddr, gpu etc and temp to calculate wattage by using some algorithm
as pcwizard can tell wattage of cpu and sisadra can tell wattage of chipset
and psu maker can introduce some sort of sensors to make it more easier.