if it is windows 10, it might work just fine without reinstalling
do you know what type of windows license you have now?
if it is retail, it will keep working, if it is oem, probably will not work, unless it is tied to your email account, if you logged in that i5 pc with your hotmail/outlook mail account