@Jamal showed a good way to calculate it, and that they can be somewhat intertwined. Still, for the cosmological solution one can easily see what causes the curvature, and what is curved. A good way to understand it is to solve the equations for general relativity. If you do it for d=4, with one of the dimensions timelike, you get the Robertson Walker metric, and for the modeled equations of state (which account for matter, radiation and if one introduces the cosmological constant, dark energy) one gets the full FLRW solution.
The metric solution can be written as, with k = 0, 1 or -1,
$$ds^2 = dt^2 - a(t)^2[dr^2/(1-kr^2) + d\Sigma^2]$$
with the item in square parenthesis the metric of a constant curvature k spatial section, and the last term is simply the angular components
$$d\theta^2 + sin^2(\theta)d\phi^2$$
You can calculate curvatures, but it is clear the spatial section has intrinsic curvature k, and the spatial slices are growing with a linear scale factor a(t) in each spatial dimension.
The Ricci scalar R, which is an invariant measure of the 4d curvature is dependent on k and a(t). See the reference to Wikipedia below for the exact dependence. This says there is a spacetime curvature, and it is true even if k = 0, which gives flat spatial slices.
So yes, space may be curved (cosmological data has k =0 to within a few percent, i.e. flat space) but spacetime definitely is curved if a(t) changes, which we know it does.
See wiki at https://en.m.wikipedia.org/wiki/Friedmann–Lemaître–Robertson–Walker_metric
This is intrinsic curvature, for the spacetime, and for the spatial slices you can see where is the contribution, if k is not zero, and that otherwise they have zero curvature. The wiki article gives you the non-zero terms for the 4d Ricci components, and in fact $R_{tt}$ is proportional to the second derivative of a(t). Other Ricci components also depend on derivatives of a(t).
You can do all this without invoking any other dimensions.