Is it possible to figure out what outfit record an NPC has defined? Just wondering.
Unfortunately, no. However, there is a command to change the outfit of an actor. Perhaps that could be useful to you as well?
X . SetOutfit ( Y, Z ). X refers to your actor reference, and Y refers to your outfit ID. Z refers to whether or not it should be treated a sleep outfit. If so, set to true. Otherwise, leave it blank.