activeDocument.layerSets is probably what you are looking for and should be able to get all of them through a for loop using the length property. I know layersets have a name property so you should be able to rename it hopefully. Been a while since I did photoshop scripting.