Here a free Magento 2 extension, where you can check the VAT number is valid or not while typing in magento2 checkout page. You can try to validate VAT number here.

Download link : Vat Number Checking (4 downloads) .