In-App Detection of current ESP Settings

Can anyone suggest a programmatic way for a Roku app to detect the current setting of for the ESP permissions (enabled or disabled)?