If you install two hots and a grounded (neutral) and no equipment grounding conductor and there is no metal paths (water, gas or other pipes) between the two buildings then treat it like a new service.

And if installing four conductors or a metal path is present then a sub panel.

Grounding electrode system is required


Mike