\Bitrix\Main\Loader::includeModule('sale');
$orderId = 10;
$order = \Bitrix\Sale\Order::load($orderId);
if(!empty($order)) {
$basket = $order->getBasket();
foreach($basket->getBasketItems() as $basketItem) {
$basketPropertyCollection = $basketItem->getPropertyCollection();
print_r($basketPropertyCollection->getPropertyValues());
}
}