Here is one way:
EDIT: Replace <dir> with your directory you want to check on.
DECLARE @Foo TABLE (Val NVARCHAR(4000))
INSERT @Foo
exec xp_cmdshell N'dir "<dir>" /s /-c /a | find "bytes" | find /v "free"'
SELECT
SUM(CAST(LEFT(
SUBSTRING(Val, PATINDEX('%)%', Val) + 1, LEN(Val))
,LEN(SUBSTRING(Val, PATINDEX('%)%', Val) + 1, LEN(Val))) - 5
)AS BIGINT)) AS TotalBytes
FROM @Foo
PS - You may need to enable xp_cmdshell
USE master
GO
EXEC sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
EXEC sp_configure 'xp_cmdshell', 1;
GO
RECONFIGURE;