Ahsoka absolutely knew Anakin and Padme were in a relationship, based on her comments to Padme during the Forces of Destiny short "Unexpected Company", when she showed up on a "mission" that Padme and Anakin were supposedly going on which was really them getting away for some private time. It isn't, however, known if Ahsoka knew they were married, or that Padme was pregnant.