HYDRODYNAMIC PROPERTIES OF GAMMA-RAY BURST OUTFLOWS DEDUCED FROM THE THERMAL COMPONENT