Grounding a sub panel in separate building
You cannot do this under current code. You USED to be able to do this. I suspect that proved to be a poor idea, since now you need to run a 4th conductor (hot or neutral) and maintain separated ground and neutral all the way to the service entrance.