At least the GOG and Steam versions should be detectable by searching the Windows registry or Steam directories.