Yes, you can file a Form 843 to request a refund of the Social Security and Medicare taxes that were withheld on your payroll per the .U.S. Tax Guide for Aliens (Page 44)
Form 843
Form 843 Instructions
You must file a separate From 843 for each tax period. You should attach a copy of the W-2 you received for each of the tax periods. In addition you should also include a copy of your Visa showing your F-1 status.
In the explanation you should include the date you entered the United States.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"