Step 1: Find the side of each cube. \[ a^3 = 8 \implies a = 2 \text{ cm} \]
Step 2: Set up the cuboid's dimensions as a vector from one corner to the opposite one.
Joining the two cubes end to end doubles only the length, so the cuboid measures $4 \times 2 \times 2$. We can think of the space diagonal as the vector \[ (l, b, h) = (4, 2, 2) \]
Step 3: Find the magnitude of this vector. \[ |D| = \sqrt{4^2 + 2^2 + 2^2} = \sqrt{16 + 4 + 4} = \sqrt{24} \]
Step 4: Simplify the surd and conclude. \[ \sqrt{24} = \sqrt{4 \times 6} = 2\sqrt{6} \text{ cm} \] \[ \boxed{2\sqrt{6} \text{ cm}} \]