If Discovery was too damaged to return to Earth, the crew would probably be ordered to stay aboard the International Space Station until a rescue mission could be launched.
I believe this is the reason that the shuttle won't be repairing or upgrading Hubble - I don't think it can visit both the space station and Hubble on the same flight.