IMO, no. Since the dwelling is not being used as a "residential structure" I don't think the detached barn would qualify even if it was being used for personal, family or household purposes.
Is the barn being used for commercial purposes? If so the answer is pretty easy. (No)
Hopefully a guru will reply to either confirm my answer or dispel it.