I don't know if magnesium is a common choice for computer enclosures, but one of the few examples of magnesium that I immediately recall (besides Surface) is a NeXT computer that went up in flames: https://simson.net/ref/1993/cubefire.html
It has similar properties to aluminum but it can be cast, making it a material of choice as a more premium alternative to plastic.