If the cluster names are already in the database, then simply querying the relevant table will give you this information.
If, however, your question is actually how to gather sql cluster names so that they can be put into a database table, then you will most likely have to use custom inventory to interrogate either wmi or the registry on each node within the cluster. This data will then allow you to map cluster names with their machine nodes via a sql query.