You can list models using the below code.

const query = 'SHOW MODELS’;
result = await MindsDB.SQL.runQuery(query);
console.log(result);