The headspace is going to be effectively all CO2 after fermentation finishes so long as the airlock is maintained.
There are a couple methods here. Assuming it has fermented dry (which it should have, if not stopped), you can:
Add appropriate amount of sugar, bottle, and the sugar will ferment...