I have thoroughly looked at the Max SDK docs and found (almost) everything about table.
So obviously table_get() is the function I want. However I need one more piece of information that table_get() does not provide.
AFAIK there’s no way to do this officially. Maybe we can add this to the SDK but I can’t make any promise. In the meantime, you can iterate through the patcher, looking for any table object whose attribute name corresponds to what you’re looking for, and ask for the range attribute. Should be a fun exercise ;-)
Or an easier way might be to initialize a table object in your C code with the appropriate name and query that object, hence you would spare the need of iterating through the patcher. Since tables with the same name should hold the same information, theoretically it should return the same range as any other table sharing the same name. However, I didn’t test this solution, use it at your own risk.