For Office 365.
How can I restrict end user from accessing using "Exchange" on smart devices?
If you'd like to restrict access to "Office 365 Exchange" from smart devices, you can set use restrictions for each user in Exchange management center on Office365 management screen.
Please see the Office 365 support site below.
*This setting is a function of Office 365
Please contact your vendor or Microsoft for further questions.
Additionally, please refer the document for settings below.