You may not want to do so. How much memory and how powerful a processor do you have? You may be much better off just buying a new system.
Also, you can still get Windows 10 free, do a search though !icrosofts websitr (unless they closed that up very recently).
Just use your win 7 key when you install win 10 but make sure you download the same flavor Pro or Home