I've not been sleeping well and I'm not sure how my body's taking it.

For about two weeks I've been unable to sleep at night, until about 5 am, in which I would then sleep until about 2 pm.

I've been working out 3 days a week and have been taking protein and eating healthy, though I don't know the effects of being sleep deprive.

I don't feel any weaker.. but I don't know.. I don't want this to become a habit. Am I losing muscle? Is it harder for me to gain strength? Any help would be cool, thanks.