Why? Under what treaty or agreement would the EU not be able to claim those oilfields? They are British oil fields, hence part of the EU at the moment. What law means that Scotland receives them if it chooses independence?
The United Nations Convention on the Law of the Sea (UNCLOS)