You can probably get most of the information you need through HCatalog, without direct access to the metastore tables.
HiveConf conf = new HiveConf(); // should pull hive-site.xml automatically
HiveMetaStoreClient hiveClient = new HiveMetaStoreClient(conf);
Table hiveTable = HCatUtil.getTable(hiveClient, "default", "sometable");
... = hiveTable.getAllIndexes(max);