Sort:  

It is calculated based on the formulas that are described in the bluepaper.

But we should know some numbers, such as the virtual supply of STEEM, it changes all the time. Where did a block get the information.

It is held in the state information. You can check the current value (for the current block) on steemd.com.