Find out if account is disabled using terminal
I think this will work.

dseditgroup -o checkmember -u testuser com.apple.access_disabled


Source: https://www.jamf.com/jamf-nation/discussions/14825/ea-for-disabled-accounts