The very short answer would that the Roman legion would likely evolve into the Spanish tercio:
It was the Spanish who pioneered the new methods of infantry fighting. The Spanish tercios became the military elite of Renaissance Europe. Numbering 3,000 men – the equivalent of a modern brigade – the tercio was formed of 12 companies of about 250 men each, with the companies divided roughly evenly between arquebusiers and pikemen. Generally, the pikes formed a central block, perhaps ten or more ranks deep, while the arquebusiers operated on the flanks, also in great depth. The pikemen required depth to ensure a solid enough formation to resist opposing phalanxes when it came to ‘push of pike’. The arquebusiers, on the other hand, were deployed in depth to maximize fire.
This gunpowder and pike military system fits Rome very well, organizationally, tactically, strategically - which it should, many of the military leaders that designed it knew De Re Militari by heart.
The larger question is whether the Romans acquiring early gunpowder technology would have made any difference in the overall scheme of things. I rather doubt it would.