Spanish police are investigating whether a party attended by Prince Joachim breached lockdown rules.