I'm sure it could be done, not sure it should be done. You will lose 5 feet of mast height and a rigger should review to see how the mast step and stays fit between the two different boats. None of the sails from the 376 would fit, and all new standing rigging would drive the cost of the swap out.
It may actually be cheaper to buy a new 376 mast than swap everything out and pay for a rigger to get it set up properly. It would be worth looking into the cost trade offs.