A desktop computer uses around 160 watts to 200 watts of electricity per hour when it's on and in use.
But usually when the computer goes into sleep mode it will use less than 60 watts of power if the power supply and hard drive etc are not running.
Some desktop computers that people use for higher end processes and work or gaming desktops use as much as 400 to 500 watts depending on the power supply they use.