Step 1: Foot of perpendicular
The foot from the point to the XY plane is $(2,3,0)$, giving distance 4.
Step 2: Foot on Y-axis
The foot from the point to the Y-axis is $(0,3,0)$, giving distance $\sqrt{(2)^{2}+(4)^{2}}=\sqrt{20}$.
Step 3: Result
$a^{2}+b^{2}=16+20=36$.
Final Answer:
The squares of the two distances are 16 and 20, adding to 36.
\[ \boxed{\text{(D) }36} \]