Testing new configuration name

I have a macro that will add a new configuration based on user input but I would like to test that input against the current configurations. Is there a way to get a list of all of the current configurations that are in a file so I can test it against the input? Any help would be great!

Thanks,

David

SolidworksApi macros