Do not disturb mode (iOS)

Is it possible to detect if iOS device is in Do Not Disturb / Sleep / Work mode etc ?
I’m currently using Ionic 6 and Capacitor.