Report question

Question: Is there a way to check, programmatically, if an ASP.NET application's CustomErrors are set to Off?