Great question — answering as the UphillTech team:
You can access theme related info via the theme object {{ theme.id }} - The ID of current active theme {{ theme.name }} - The name of current active theme This is a very nice cheat sheet you should be using: https://www.shopify.com/partners/shopify-cheat-sheet
Full answer by Nikolay Mihaylov: https://stackoverflow.stackexchange.com/a/64826783 (CC BY-SA 4.0).
Need it done for your business? UphillTech.