Only save way of doing this would insult an online registration of the software, to one of you servers.
The software should generate an id on install with fixed system ids used, so the server may identify the software on that system.
Well, I would recommend not to build a trial version, but a free version with limited functionality.