Open the Photos app (it’s in the Applications folder). Click the Photos menu. Click Preferences… Click the iCloud tab. Check the box beside “iCloud Photo Library. ” Close the window. Select either Download Originals to this Mac or Optimize Mac Storage.
To learn how to download and set up iCloud for Windows, see Using the iCloud for Windows.