The attached notebook should give you an idea of how to do this computation in Mathematica. It does not follow the Markowitz notation religiously, but it is “better” Mathematica style. I believe the isovariance contours will be ellipsoid if there is a negative correlation between at least two of the stocks. Also this link might help you.