Hi Karthik,
not quiet sure about your exact requirements, but my first idea would be to utilize the Tenant Context API. Especially the method getSubscribedTenants() should be interesting for your use case.
Please refer to SAP HANA Cloud Platform documentationfor more details.
BR,
Johannes