There are several ways to do this. For the beginner I recommend the simplest. Read the computer name in the registry. Convert it to a CheckSum and use that as a 'key' to unlock the software after initial installation. Only if someone has the exact computer name will it work for someone else.
Once you understand how that works you can use different things. Combination of computername/username, windows key, or almost anything else.