Let $M$ be a two-dimensional Riemannian manifold, and assume that $M$ can be realized as a surface $S$ in $\mathbb{R}^{3}$.
I know that one can compute the Gaussian curvature $K$ of $M$ as the determinant of the shape operator of $S$.
Question: What if you are given an isometric embedding of $M$ into some Riemannian three-manifold $N \neq \mathbb{R}^{3}$? Can you still compute $K$ as in the classical case?
Denote by $\mathbb{M}^3(c)$ a simply-connected Riemannian $3$-space with constant sectional curvature $c=-1,0,1$. That is, $\mathbb{M}^3(c)$ denotes the hyperbolic space $\mathbb{H}^3$ if $c=-1$, the Euclidean space $\mathbb{R}^3$ when $c=0$, or the sphere $\mathbb{S}^3$ if $c=1$.
Now, consider an oriented Riemannian surface $\Sigma$ with induced metric $I=\langle,\rangle$ and $f:\Sigma\to\mathbb{M}^3(c)$ an isometric immersion. Let $N$ be a unit normal along $\Sigma$ which is compatible with the orientation, and $II$ its associated second fundamental form. That is, $II(X,Y)=\langle-\nabla_X N,Y\rangle$, where $X,Y$ are smooth vector fields in $\Sigma$ and $\nabla$ the Levi-Civita connection of the ambient space.
If $k_1$, $k_2$ are the principal curvatures of the immersion, namely, the eigenvalues of the shape operator $S$, given by $SX=-\nabla_X N$, then we shall denote by $$K=k_1k_2,\quad H={1\over 2}(k_1+k_2)$$ the extrinsic curvature and the mean curvature of the immersion, respectively. These two quantities are extrinsic and depend on how $S$ is immersed into $\mathbb{M}^3(c)$.
On the other hand, we denote by $K(I)$ the curvature of the metric $I$, namely, the Gauss curvature, which is an intrinsic quantity. For the previous immersion $f:\Sigma\to\mathbb{M}^3(c)$ the following relations must be satisfied $$K(I)=K+c,\quad\text{(Gauss equation)}$$ $$\nabla_X SY-\nabla_Y SX-S[X,Y] = 0,\quad\text{(Mainardi-Codazzi equation)},$$ where $\nabla$ is the Levi-Civita connection of the metric $I$.
You can see with these examples, the space forms, that the Gauss curvature is the product of the eigenvalues of the shape operator when your ambient space is $\mathbb{R}^3$, but there is a term (the sectional curvature $c$) that modifies it in general.