User-1513591455 posted
Yes - but you will need a login into AD itself to get those properties, and the use of AD classes.
Since the login is usually high level, it isn't recommended for web sites - you might want to write a service on the AD server that allows certain calls such as one to ask the simple question - has this "domain\user" expired and return a bool
A user AD item contains a number of flags, including the one you want.