Seeing if the protection attribute differs on locked/unlocked devices

As described here: http://stackoverflow.com/questions/3806455/how-can-i-find-out-if-the-iphone-user-currently-has-a-passcode-set-and-encryptio