ZDaemon ACS Extensions - ZD_GetSkinName
This function will return the skin name for the requested skin number. The syntax is:
str ZD_GetSkinName(int number)
The number is the value that you see when using the client command: skins
when it comes to setting a skin based off of the retrieved name, as well as retrieving the top index of the installed skins in order to create a potential list that can be iterated through.