Actually the real answer is MAYBE if original windows licence is retail.

According to EULA, windows 10 is transferable if licence is standalone (retail) or original licence you upgraded from is...