yes you can do that.
what you are asking for is offered by VMware VSAN and of-course to set it up, you need those 10 hosts you are talking about to be installed with ESXi OS 5.5 U1 or higher and a vCenter server to manage them so you can create a VSAN clsuter.
Please review hardware requirements carefully.
What is VMware vSAN? | Virtual SAN | VMware | CA