To query FSMO roles, you'll need to be signed in with an account that is a member of the Enterprise Admins group.