Hi
As I understand it, you will have to have some version of Windows (Windows 7 or later) with a legitimate serial number on the computer to upgrade to Windows 10.
I've seen some messages saying that even a rouge copy of Windows 7 will work, but that seems unlikely to me.
But you will have to have some operating system on the computer to get the upgrade.
Mike