From the black body radiation spectrum.
[UPDATE] It turns out that the temperature of TrEs-2b is not directly measured, but extrapolated from other measurements (at least according to Wikipedia - https://en.wikipedia.org/wiki/TrES-2b#Temperature ).
> Instead of the energy being absorbed as heat by the planet, it'd instead be stored in some other form or used for interstellar travel, construction etc, right?
Yes, exactly. So the only possible impact of energy harvesting would be to make the planet cooler than it otherwise would be. How much cooler depends on the efficiency of the harvesting. But one way or another, an extremely hot planet is very unlikely to harbor an advanced civilization.
There are no other discovered planets in the system, but perhaps there are some, or at least moons.
Instead of the energy being absorbed as heat by the planet, it'd instead be stored in some other form or used for interstellar travel, construction etc, right?