1
You can upgrade from Windows 7 to Windows 10 using the Installation assistant on this link, if your hardware supports Windows 10.
https://www.microsoft.com/software-download/windows10
However, the upgrade from Windows 7 to Windows 10 is no longer free, you would need to purchase a Windows 10 licence.
2
With regards to upgrading to Windows 11, if you currently have Windows 7 installed on your PC, it is unlikely your hardware supports Windows 11 and you will be blocked form performing that update.
What is the exact processor model on your PC?