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 Network Discovery feature on your Windows computer and to get the IP address of the remote computer 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.