A tutorial that covers this process can be found here.
If an object has multiple UVW tags, then the first one is exported as the main UV set (uvidxs and uvlist). The other tags become indexed user data. The name of the user parameter is the name of the UVW tag. Tags with an existing name are skipped and a warning message is added to the log in this case.