How to detect high contrast mode.

How to detect high contrast mode.

Is there simple way to detect high contrast mode?
I am talking about windows high contrast mode (web accessibility).
I need to detect this mode in browser.
Any idea?
Thanks for help.