I don't know if there is a specific X5 DIY, but here's one from the E46Fanatics forum:
Oil Filter Housing Gasket DIY - E46Fanatics
What engine do you have? If it's 3.0, then this DIY will work. If not, you may want to look for a DIY more applicable to the larger engine. Good luck!