How can I verify the Windows version and deny installation to anything prior to Windows 7?

Thanks!