DB2 version information store at following path in registery.
Hkey_Local_Machine --> Software --> IBM --> DB2 --> Current Version.
Usually, these registery entries are deleted when you uninstall DB2 products.
If you found this entries that means your uninstallation of DB2 was not proper.
Delete this entries,reboot server and try to install DB2 again.
Other alternative is to reinstall windows and start fresh.