Hi,
As per my understanding all the licensed user are active users, if user is de-active they are not consuming any licence.
so you can simple view active user view in MS CRM UI or can query system user entity if you want to check using code.
HTH
Contact Me
Follow me on Twitter
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.