Investment Income Loss

I lost $10k through the stock market this year. Am I able to pass the loss as a deduction to my W2 and if so how much?