How can I find a record in database using its External Id?

Let's say I have the following record in my data file:

```
<record model="product.product" id="product_to_find"> ... </record>

```

How can I retrieve it in code-behind?