Not possible. The object model exposes very, VERY little regarding table structures. You can basically review the information that appears on the Pivot tab of the Format, Table dialog box … read only.
The alternative is to create two versions of the table … one with and one without. “Stack” the two tables one on top of the other, and use the “Hide Block” feature (Appearance tab) to display only the desired table. Base the hide on a formula, and use VBA to change that formula.
Your idea of hiding tables has opend up a lot of new aspects to handle. Now I can throw required BO environment variables and use their values in if …then…else conditions and in a lot of other calculation in any report.