Exploring the properties of stellar CO bands using synthetic photometry and spectroscopy