Let's call $O$ the center of the circle you seek, $I$ the center of the right small circle, $R$ the radius of the large circle, $H$ the height between base and top of circle, $P$ midpoint between the two small circles and $d=PI$.
You have the triangle $PIO$ which has a right angle at $P$.
$PI=d$, $OI=R-r$ and $PO=R-H+r$
Then you have $(R-r)^2=d^2+(R-H+r)^2$ or $(R-r)^2-(R-H+r)^2=d^2$
That is $(R-r+R-H+r)(R-r-R+H-r)=d^2=(2R-H)(H-2r)$
$R=\dfrac{d^2}{2(H-2r)}+\dfrac H2$