Here are some thoughts on mathematical aspects of the question:
Can a smooth manifold be reconstructed from a collection of charts?
YES
Assume you're given open sets $U_k\subset\mathbb{R}^d$ $(k=1,\dots, N)$ (think: pages in an atlas of the earth) and diffeomorphisms $\psi_{kl}\colon \operatorname{Domain}(\psi_{kl})\supset U_k\rightarrow U_l$ satisfying the obvious consistency condition (think: you keep track of certain locations on the earth appearing on different pages of the atlas). Then you can build from this a space $X=\coprod U_k/\sim$ by gluing the sets $U_k$ along the overlaps (think: you tear out the pages of the atlas and glue them together such the overlaps match up). Then there's a natural way to turn $X$ into a smooth manifold.
For any smooth manifold $X$ one could first consider an atlas (in the geometry sense), which gives rise to chart domains $U_k$ and transition functions $\psi_{kl}$ as above and then the preceding construction again yields $X$ (think: if you follow the instructions from above for an actual atlas of the earth, say with strechable paper such that you can nicely glue everything, then you end up with a sphere)
Can a Riemannian manifold be reconstructed from a collection of charts and marked distances?
YES
Say in the setting above each chart domain $U_k$ comes with a distance function $d_k\colon U_k\times U_k\rightarrow [0,\infty)$, again being compatible with each other (think: the distance between Paris and London is the same no matter on which page of the atlas you measure it). Then on $X$ you get a function $d\colon \mathcal{D}\subset X\times X\rightarrow [0,\infty)$, defined on some neighbourhood $\mathcal D$ of the diagonal in $X\times X$ such that $d(x,y)=d_k(x,y)$ if $x,y\in U_k.
$
Can $d$ be extended to all of $X\times X$? (think: there might be no page in the atlas in which you can measure the distance between Paris and Tokyo - can you still compute how far they are away from each other?) If you're able to comptue $d$ for points that are close to each other, you can define the length of a curve in $X$ (by marking $M$ points, very close to each other, adding up their distances and then taking the limit $M\rightarrow \infty$). If you can measure lenghts of curves, then you can measure the distance between any two points $x,y\in X$ by taking the infimum over the length of all curves between $x$ and $y$. This should give a metric $d^*$ on $X$ and if the metrics $d_k$ you started with were reasonable nice, it should be true that $d^*=d$ whenever the latter was already defined. Checking these claims should be possible after reading a bit about length spaces.
Next, if the original manifold $X$ that was mapped out in the atlas came with a Riemannian metric $g$, is it possible to recover this from $d$? (think: if you do this, then you can not only compute distance but also other intrinsic metric quantities, like the Gaussian curvature of the earth) The answer to this is yes, see here.
Can we reconstruct how the earth sits in space?
This question is of course a bit vague -- with the data available in a common atlas and specified above ($U_k,\psi_{kl},d_k$) -- the answer is no. From a mathematical point of view this is just saying that you only get the intrinsic geometry but no extrinsic features that depend on the precise embedding of $(X,g)$ in an ambient manifold. But for the earth this should be obvious -- after all, by looking at an atlas, how would you figure out the distance to the sun?
One reasonable question would be the following: Assume we are not given the intrinsic distances $d_k$, but the extrinsic distances $\tilde d_k$ (think: the direct line by going through the earth) - can we determine some geometric features beyond what is said above? This is related to the famous boundary rigidity problem, see e.g. here. Having this data and using the (very recent) theorem from the previous link, one could e.g. say that in a $3$-dimensional layer below the earth's surface the space has zero curvature.