It's probably a 590mm 26x1-3/8 if it looked like a 27.
Things can be done but it would cost more and be a lot more trouble than finding a genuine 27.
a new 27" rear wheel probably runs around $35 so spending too much cash and worry swapping in the 26s isn't worth it, especially if the 26 bike is saleable.