President Barack Obama is great at many things, but keeping Jay Z and Beyonce's baby secrets might not be one of 'em.

Obama recorded a message congratulating his pal, Jay, for making it into the Songwriters Hall of Fame -- but during the message he broke major baby news -- possibly -- by saying Jay was about to top him in the daughter department.

As 44 put it ... "He's gonna have me beat once those two twins show up."

There's a lot of ways to interpret that, but TMZ is pretty sure the Beyhive's running with ... Blue Ivy's getting baby sisters!

Also, did Obama just put to rest all the rumors Bey's already had the twins?

Again. Possibly.

Photo: YouTube