You will need to check if the Euclidean distance between the two bubbles' coordinates is less than or equal to the sum of the radii of the two bubbles (= diameter of one bubble if they are all the same size).
var deltax = b1.x - b2.x;
var deltay = b1.y - b2.y;
if (Math.Sqrt(deltax * deltax + deltay * deltay) <= b1.radius + b2.radius)
{
}
This assumes the coordinates are of the
center of the bubbles!!