Great question — answering as the UphillTech team:
You can use: $available_variations = $product->get_available_variations(); If this is a single style template, make sure you add global $product; near the top. From there, you can foreach through the variations and do as you wish... since you didn't have any specific output I hope that this sets you on the right track.
Full answer by Shawn Wernig: https://stackoverflow.stackexchange.com/a/13467510 (CC BY-SA 3.0).
Need it done for your business? UphillTech.