Let $I$ denote the integral.
- A lower bound.
$$f(x) = \int_0^x f'(s) ds = \int_0^x \left(2 + \int_0^s f''(t) dt\right)ds.$$
Thus, $$f(x) - 2x= \int_0^x \int_0^s f''(t) dt ds,$$
or
$$ f(x) -2x = \int_0^x \left( f''(t) \int_{t}^x s ds\right) dt=\int_0^x f''(t) (x-t)dt.$$
Apply Cauchy-Schwarz to the right-hand side obtain
$$(*)\quad |f(x)-2x| \le \left (\int_0^x f''(t)^2 dt \right)^{1/2} \left(\int_0^x (x-t)^2 dt\right)^{1/2}= \sqrt{I} \times \frac{x^{3/2}}{\sqrt{3}}.$$
In particular, letting $x=1$, we have that
$I \ge 12$.
- A function attaining the lower bound.
We do this by choosing a function for which Cauchy-Schwarz $(*)$ is an equality for $x=1$. That is, we need $f''$ equal to a constant multiple of $1-t$. From this it follows that $f$ must be of the form
$$f(t)= c_1(1-t)^3 + c_2 t+ c_3.$$
The constraints determine the constants, and once this is settled, we automatically know that for our chosen $f$, the inequality in $(*)$ is an equality for $x=1$, and therefore the bound obtained in 1. is attained by $f$.
Let's find the constans. Setting $f(0)=0$, we have that $c_1+c_3=0$. Setting $f(1)=0$, we have $c_2+c_3=0$. Therefore $f(t) = c_1 (1-t)^3+c_1t - c_1$. Now $f'(0)= -3 c_1+c_1= -2c_1$. Therefore $c_1=-1$. We have found that the function
$$f(t)=(t-1)^3 -(t-1)=(t-1)((t-1)^2 - 1) = (t-1)t(t-2).$$
satisfies the constraints.
The next step is redundant, but let's include it for the sake of completeness: $f''(t) = 6(t-1)$. Thus,
$$\int_0^1 f''(t)^2 dt = \int_0^1 36 (t-1)^2 dt = 36 \int_0^1 t^2 dt = 12.$$