Secure boot, signed drivers, attestation, is all possible. But you can just sign your own driver anyway so kinda useless.
Might be possible with a more secure mode that is booted into when you launch a game that only allow specific drivers and programs like the game and maybe discord.