From the device that has Desktop and Document syncing enabled:
Settings -> [your name] -> iCloud -> iCloud Drive [under apps using iCloud] -> Desktop & Documents Folders -> ON / OFF.
If you want to know WHEN you enabled that option, I don't think that information is available without a giant trawl through the logs.