No, there is no universal way.
Each RDBMS has its own metadata tables that contain things like schema details (table names, column names, etc.).
For example, DB2 has many tables in the SYSIBM , for example SYSIBM.SYSCOLUMNS . In fact, I believe that this may vary even between some platforms (such as DB2 / LUW and DB2 / z).
You just need to do what we all do, I'm afraid :-)
This means that your code is configured to use different methods based on the target DBMS.
source share