Using the fact that the angular velocity is a vector as infinitesimal rotation commute.
Then the relative angular velocity of body 1 w.r.t 2 is given by
w12 = w1 -w2 (as for relative linear velocity)
The relative acceleration of 1 w.r.t 2 is
(dw1 / dt)S'
Where S' is a frame rotating with the second body and S is a space fixed frame with origin coinciding with the point of intersection of the two axes,
but (dw1 / dt)S = (dw1 / dt)S' + w1 X w2
Since S' rotates with angular velocity w2. However (dw1 / dt)S = 0 as the first body rotates with constant angular velocity in space, thus
Beta12 = w1 X w2
Note that for any vector b, the relation in space forced frame (k) and a frame (k') rotating with angular velocity w is
db/dt IK = db/dt IK ' + w X b