If it was bought via Apple it's easy enough to do using Apple ID and iCloud. Apple store require Apple ID and everything linked.To track it they'd need to know the serial and the IMEI numbers. Impossible to know before you've seen the box.
Can't see DPD, or any major delivery company, knowingly delivering stolen items.