changing wheel studs

i thought of that and i dont know if its safe to remove the pin thing holding the hub to the car. its the double fish hook shapped thing. i also have a blowtorch and was wondering how i can cool the studs while still heating the hub?