The SAS metadata is not documented for users, so you would have to reverse engineer it to get to it from another language. DBMS/Copy (now owned by SAS) and StatTransfer have done this, so it is not impossible. SAS actually stores most (all?) of the general metadata in SAS datasets (I don't know abut the SAS Metadata Server product.).
Depending on your need, another option would be to use SAS to export the particular metadata table to a SAS transport file and read that file (which is documented somewhere).