There is no way to do so . NaOH is pure cpd which contains no carbon so how can you have any carbon dioxide !!!! Little bit of CO2 in air be absorbed by NaOH together with water to form a caustic solution but the content of CO2 is not much even you add acid to it only neutralization is mostly taken place .