A network printer or a local printer that is shared by other computers can be accessed by Windows. You can connect to printers shared by Windows or any other operating systems such as Ubuntu Linux or macOS as they are shared using the same protocol, SMB/CIFS.
You need to enable the Network Discovery feature on your Windows computer and get the remote computer's IP address to start connecting to the shared printer. The printer can be added to your Windows machine directly from File Explorer.
Related: How to show IP address in Windows
Comment anonymously. Login not required.