You could choose to do a clean install, and I am assuming windows 10 here only, on the SSD. Also assuming that you windows 10 us legal and valid, then that key is actually kept on Microsoft servers, so they will activate that without issue. Then you can plug the hdd back in afterwards.
The...