Part-manual solution for a one-off.... if you copy the feature classes to a new empty fgdb for example, I think only those domains in use copy over (that has been my experience anyway). Then you could use the ListDomains option. Not as automated but might be faster, depending on your needs.