Two men have been arrested in connection with an elaborate scheme that resulted in them stealing tens of thousands of dollars in copper pipes from home improvement stores locally and around upstate New York, according to State Police.