There is no function (apart from what is included through GAP) to construct all groups of a given order in Sage. You can certainly use the grpconst module from GAP in Sage using the GAP interface.