In the future please make new threads for new questions. This makes it easier for future students to find your question when they search the community forum.
You can install Windows Server on any server, desktop, laptop or as a VM that meets the requirements listed here: https://docs.microsoft.com/en-us/windows-server/get-started/system-requirements
Do NOT install Windows Server over your existing Windows 10 installation. Instead, please install it as a VM or on a separate computer that you don’t care if the existing data gets deleted.
Here is an old YouTube video that shows the steps: https://www.youtube.com/watch?v=8G6ZTu8qANM