• Nevermind. I got it.

    I am now using sp_helpuser, so that I can get both database user and login.

    After that I can use isntgroup column in sysusers table to find which one of these account are actually groups.

    Thanks!