Connecting the Dots: Investigating Planet Formation and Composition Through Observations of Carbon and Oxygen Species in Stars, Disks, and Planets