Safe, not effective
After 2 weeks, the gums around the extraction site should be just about healed.
Even though most whitening agents are a form of peroxide, swishing with hydrogen peroxide will probably not have much of an effect. Many otc whitening products can be quite effective if used diligently and routinely. For the best results, see your dentist.