Hello,
Welcome to the Microsoft Windows Community.
Good evening. Since the computer is currently running Windows 8.1, we first need to check the system specifications and license history before determining whether it is possible to upgrade to Windows 10 or 11.
Support for Windows 8.1 ended on January 10, 2023; therefore, it no longer receives security updates or regular support. However, this does not mean the license has simply been blocked or invalidated.
Since you mentioned that a previous version of Windows was installed on this computer, we can check if Windows 10 was previously activated on it. This is important because a digital license previously associated with the device may allow for activation after reinstalling the same edition.
To check the system details, press Windows + R, type: msinfo32 and press Enter.
Please send a screenshot of the System Information window, making sure to hide any personal information. You can use Windows + Shift + S to take the screenshot.
With this information, we can check the device model, boot mode, and current Windows version, and provide more accurate guidance on the next steps.