I think that it it not practically possible to detect reliably, using a piece of code, that the code is running inside a virtual machine. But apparently there are ways to make a good guess - for example, by looking at the devices that are typical for...