How to find categoryID from articleID inside confirm.tpl (/checkout/confirm)?

There is a  category  of product in our shop which cannot be shipped outside Germany. So when a customer outside of Germany orders any product of that  category  we want to prevent them from that order or give him a message in /checkout/confirm page 

We want to get  categoryID  from  articleID  and check with the  shipping address  of the customer and validate it.

We get the articleID from the BasketItem in confirm.tpl

$sBasketItem.articleID

but the BasketItem doesn’t contain the category / categoryID of the products. Now how can we get the categoryIDs of the BasketItems (Shopping Cart)?

We are using Shopware 5.6.4