Sensor for computer usage?

Even though it’s more like the other direction, this might still be interesting for you: Integrating Win10 In HA with MQTT

Maybe executing programs could do the trick. Perhaps the Windowns Power Shell can be leveraged to get some usage stats.