This was possible years ago in flash ( and so technically still possible ):
flash.Accessibility.active
“Indicates whether a screen reader is active and the application is communicating with it. Use this method when you want your application to behave differently in the presence of a screen reader.”