How do you want to do this?
There is no reliable way to measure the consumption of most of the parts, some parts are not even read be the motherboard (HDD consumption, PSU losses etc.) Your best bet is going to buy a cheap socket power meter, this does it way more reliable, you know how much is actually pulled from the socket and depending on the model you can connect it to Home Assistant for example.