It's actually the other way around. You can't actually measure electric fields, there's no device that does that.
Usually you know the charge that generates the electric field. Then you draw a closed surface around it so you can compute the electric field. The electric field of a charge is just pointed outwards (or inwards, depending on the sign of the charge) and is the same in all directions.
Gauss' theorem, also known as the divergence theorem, says that the net flux of a vector field in a volume is equal to the divergence of that vector field integrated over that volume, or: \int_{A}\mathbf{E}\cdot\mathbf{n}dA=\int_{V}\nabla\cdot\mathbf{E}dV.
The divergence of the electrical field is the charge density divided by the vacuum permittivity: \nabla\cdot\mathbf{E}=\dfrac{\rho}{\epsilon_{0}}.
The charge density integrated over a volume is equal to the total charge enclosed within that volume: \int_{V}\nabla\cdot\mathbf{E}dV=\int_{V}\dfrac{ \rho}{\epsilon_{0}}dV=\dfrac{Q_{enc}}{\epsilon_{0}}.
Now when we choose our volume in a convenient way such that \mathbf{E} is always perpendicular to the surface of our volume, we will be able to easily obtain the electrical field.
For a charged particle our best bet would be a sphere centered on the charge. We already solved the right hand side of the equation, so we only need to solve the left hand side. Since we know that both \mathbf{E} and \mathbf{n} point in the same direction and since we know that \mathbf{n} only has an r-component, the integral becomes \int_{A}\mathbf{E}\cdot\mathbf{n}dA=\int_{A}E_{r}dA=E_{r}A=E_{r}4\pi r^{2}.
Thus E_{r}4\pi r^{2}=\dfrac{Q_{enc}}{\epsilon_{0}} or E_{r}=\dfrac{Q_{enc}}{4\pi r^{2}\epsilon_{0}}.
Since the electric field only points in the r-direction, we can then obtain the electric field by multiplying with the outward unit normal vector: \mathbf{E}=E_{r}\mathbf{\hat{r}}=\dfrac{Q_{enc}}{4\pi r^{2}\epsilon_{0}}\mathbf{\hat{r}}