the license doesn't ask for the ssd or hard disk
it goes against the mainboard serial number, when it was activated on windows 8
once you got windows 10, you get the win 8 license disabled(to install win 8 again) and only digital rights on the new one
install windows 10 on the pc again, it should activate itself once it connects to internet, if not, put the serial number form win 8, it should work, or at least i have done it this way a couple times this year
choose the right hard disk or ssd when installing, unplug unwanted or unnecessary hard disks while you install windows 10, to avoid formatting the wrong hard disk