Create a parameter that prevents the game from running on virtual machines

Is there any possibility of creating a command in the game instance that checks if the operating system is a physical bios or a virtual machine? This is to prevent cheating players in multiplayer games from trying to hack the game or hack the hosting platform. In a virtual machine malicious players can try to download programs badly to cheat in the game without worrying about viruses on the pc, but in the operating system in hd you have less possibilities.