Calculating the expectation value for a specific Hermitian operator
This approach can be implemented with real Quantum Hardware and with a simulator. Every Hermitian operator can be decomposed in the sum of Pauli tensor product terms (Pauli terms) with real coefficients (see this thread [1])
$$H = a \cdot \sigma_z \otimes I + b \cdot\sigma_y \otimes \sigma_y + c \cdot\sigma_x \otimes I, $$
where $a,b,c$ are real numbers. The expectation value of $H$:
$$\langle \psi | H | \psi \rangle = \langle \psi | \sigma_z \otimes I | \psi \rangle + \langle \psi | \sigma_y \otimes \sigma_y | \psi \rangle + \langle \psi | \sigma_x \otimes I | \psi \rangle $$
So, finding the expectation value of $H$ operator can be calculated from summing separately calculated expectation values of the Pauli terms with their real coefficients. Now we should run separate experiments for calculating the expectation value of each Pauli term. Note that in some cases when the Pauli terms commute we can combine the expectation value estimation procedure for them like was shown for the two-qubit state in this question [2] (or here [3]). It is not our case, because our Pauli terms do not commute with each other.
Note that any one-qubit state can be expressed with different eigenbasis (like every vector in a 2D real space can be expressed with a combination of any set of 2 orthonormal 2D vectors):
$$|\psi \rangle = c_0 |0 \rangle + c_1| 1 \rangle = c_+ | + \rangle + c_-| - \rangle$$
where $c$s are complex numbers, $|0 \rangle$ and $| 1 \rangle$ are eigenbasis for $\sigma_z$, $|+ \rangle = \frac{1}{\sqrt{2}}(|0 \rangle + | 1 \rangle)$ and $| - \rangle = \frac{1}{\sqrt{2}}(|0 \rangle - | 1 \rangle)$ are eigenbasis for $\sigma_x$. For the two-qubit case, we can use Bell basis that is also an eigenbasis for $\sigma_y \otimes \sigma_y$ [2], [4]
$$
|\psi \rangle = c_{\Phi^+}|\Phi^+\rangle + c_{\Phi^-}|\Phi^-\rangle + c_{\Psi^+}|\Psi^+\rangle + c_{\Psi^-}|\Psi^-\rangle
$$
where $|\Phi^+\rangle$, $\Phi^-\rangle$, $|\Psi^+\rangle$ and $|\Psi^-\rangle$ are Bell states. By taking this into account we can obtain:
$$\langle \psi| \sigma_z | \psi \rangle = |c_0|^2 - |c_1|^2
\\
\langle \psi| \sigma_x | \psi \rangle = |c_+|^2 - |c_-|^2
\\
\langle \psi| \sigma_y \otimes \sigma_y | \psi \rangle = -|c_{\Phi^+}|^2 + |c_{\Phi^-}|^2 + |c_{\Psi^+}|^2 - |c_{\Psi^-}|^2
$$
"+" and "-" sign comes from $P |\lambda \rangle = \pm |\lambda \rangle$ for a Pauli term $P$ with correspoding eigenvector $|\lambda \rangle$. Here $|c_0|^2 = \frac{N_0}{N}$, $|c_1|^2 = \frac{N_1}{N}$ for big enough $N$, $N$ is the number of the measurements, $N_0$ is the number of $|0\rangle$ measurements, $N_1$ is the number of $|1\rangle$ measurements. The same for $\sigma_x$: $|c_+|^2 = \frac{N_+}{N}$, $|c_-|^2 = \frac{N_-}{N}$ for big enough $N$, $N_+$ is the number of $|0\rangle$ measurements, $N_-$ is the number of $|1\rangle$ measurements. Similarly for the Bell states. So by just measuring in the appropriate basis we will be able to calculate the expectation value of the Pauli terms. Here we can have a problem, if our quantum computer don't have a possibility to measure in arbitrary eigenbasis. For a given $P$ Pauli term this problem can be overcomed by applying such $U$ unitary operator before the $\sigma_z$ (default) measurements (like was presented here [5]), that:
$$ \langle \psi |P| \psi \rangle = \langle \psi | U^{\dagger} \sigma_z \otimes \sigma_z \otimes ...\otimes \sigma_z U | \psi \rangle$$
Note that in the product $\sigma_z \otimes \sigma_z \otimes ...\otimes \sigma_z$ in some places we can have $I$ instead of $\sigma_z$: it just means that we will not do any measurement for the corresponding qubit. For $P = \sigma_x$ this can be done with $U = H$ gate. For $\sigma_y \otimes \sigma_y$ we can take $U = (H\otimes I) CNOT$ [2], [4].
The same can be done for $H^2$ because it is also a Hermitian operator and hence with this method, we will be able also to calculate the variance of $H$.