Get all controls or pots of given controlset

Is it possible to get all controls or pots of a given controlset from within a lua script?