I remember some years ago, when virtualisation software started appearing and becoming mainstream @Lindersoft had an issue/request with SB4 to detect running on virtualisation software, or something to that effect.
I always wondered how he might have done this, had my suspicions, and I suspect having seen the above github link he was probably scanning the PNP deviceID, which is what MS are also doing.