Virtual machine detection