Dunlop0078 :
It would be in the laptops manual. If it's SATA only you can only use a SATA m.2 drive. If it's PCIE only you can only support a pcie drive. Some support both.
Thanks for your reply Dunlop0078 but I don't have access to the manual (it's my friend's laptop and he lost the manual) , is there any way tell if it's PCIE or SATA by looking at the connector (http://i64.tinypic.com/2lmrwnl.jpg) ?