There is actually an early reference to The Borg from the Star Trek: The Original Series. One of the early Voyager Probes, that was sent out into space, was sucked up by a black hole after it left the confines of our solar system, and transported to the Delta Quadrant. Once there it encountered a "planet made of living machines" and it is assumed that it was promptly assimilated.