Microsoft have a good guide showing how to deploy Office 365 ProPlus with System Center Configuration Manager (SCCM), see here. Within the guide there’s a section showing the detection rule to use. However, I’ve found the registry detection method doesn’t work and Office 365 ProPlus will install, but Software Centre will show the installation as failed.
The Microsoft guide has the following configuration, which I’ve found to not work.
This is the detection method I use. If you update the detection method, run a machine policy retrieval & evaluation cycle on an affected machine to test the change.