Get the list of discounts the customer is using, not just the ones that have been applied to cart

In a checkout UI extension you can get the list of currently applied discounts to the cart, but what about discounts that are not currently applied to the cart - example: customer hits the site with /discount/XYZ in their url, but their current cart contents are not valid for XYZ discount. However as soon as they add an item that IS valid for XYZ discount, that discount is applied, suggesting that XYZ is sessioned some where. So in the first scenario, where the cart doesn’t have an items yet that are valid for XYZ, XYZ is not passed to the checkout UI extension in the discounts collection - I would like to access discount codes the customer is attempting to use regardless if it was successfully applied to the cart or not. Is this possible?