How do I show a coupon code to customers?
The UC coupon module doesn't have a general purpose coupon retrieval function. 

If you're solely looking to retrieve an active coupon, you can follow what the module itself does: query the DB table uc_coupons for rows with column status = 1. Using a DB query will let you modify it to whatever your particular case (e.g. 1 or more results, bulk codes, date range, etc.).