transferring components


Hi, can somebody tell me if i can take the insides of lenovo sff intel i5 quad core thinkcentre m series and place them in a dc5800 micro tower as i want to add extra hard drive and i have an unused dc5800 pc spare. the motherboard and components on the lenovo are vastly better than what i have in the dc5800. thanks for any advice you can give.