Is there a way to check the remaining space in c#?
Yep! There's a users/get_space_usage endpoint available on the API that will return usage information about that account.
You can also use the official Dropbox API v2 .NET SDK. Here's a link to the relevant method.