Snippet below can be used to programmatically determine if User Account Control is enabled: