Detect discord Call status

I want to make an automation which sets my lights to a specific state whenever I am in a discord call and reset them when I hang up. This doesn’t even need to be connected to my discord account, it could just read it from my PC, since this is the only relevant device. Is this possible?

You need something to change state when the call starts that HA can use for a trigger.
Could be as simple as a battery powered zigbee button on the desk, or as complicated as a bot on discord that sends something to MQTT or your HA API, but if HA doesn’t know something happened, it can’t act on it.