That would depend on what factors/inputs/element you could use to generate the unique key.
Some vendors do it by the MAC address of the network adapter (whether Windows is running on a physical system or in a virtual machine).
What are you actually trying to prevent?
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Although I am a VMware employee I contribute to VMware Communities voluntarily (ie. not in any official capacity)
VMware Training & Certification blog